package  com.pcbly.web.business.crm;

/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.persistence.crm.YufuToYingfuDescDao;
import com.pcbly.web.bean.crm.YufuToDescBean;
import com.pcbly.web.business.BaseServiceImp;
import com.pcbly.web.components.hibernate.support.Page;

 
public class YufuToYingfuDescServiceImp extends BaseServiceImp<YufuToDescBean> implements YufuToYingfuDescService {
	 public YufuToYingfuDescServiceImp() {
		super();
		// TODO Auto-generated constructor stub
	}
	private YufuToYingfuDescDao yufuToYingfuDescDao;
	
	public void setYufuToYingfuDescDao(YufuToYingfuDescDao yufuToYingfuDescDao) {
		this.yufuToYingfuDescDao = yufuToYingfuDescDao;
	}
	
	@Override
	public YufuToDescBean getYufuToYingfuDescBeanById(String id) throws Exception {
		// TODO Auto-generated method stub
		return yufuToYingfuDescDao.get(YufuToDescBean.class,id);
	}
	
	@Override
	public void removeYufuToYingfuDescBeanById(String id) throws Exception{
		yufuToYingfuDescDao.removeYufuToYingfuDescBeanById(id);
	}
	
	@Override
	public void removeYufuToYingfuDescBeanByIds(String ids) throws Exception{
		yufuToYingfuDescDao.removeYufuToYingfuDescBeanByIds(ids);
	}
	
	
	@Override
	public YufuToDescBean saveYufuToYingfuDescBean(YufuToDescBean crm) throws Exception{
		return yufuToYingfuDescDao.saveYufuToYingfuDescBean(crm);
	}
	
	@Override
	public YufuToDescBean updateYufuToYingfuDescBean(YufuToDescBean crm) throws Exception{
		yufuToYingfuDescDao.saveObject( crm);
		return crm;
	}
	public Page<YufuToDescBean>  findYufuToYingfuDescBeanByCond(YufuToDescBean bean,
			Page<YufuToDescBean> page, String orderByName, boolean asc)
			throws Exception{
		return yufuToYingfuDescDao.findYufuToYingfuDescBeanByCond(
				bean, page, orderByName, asc);
	}
}
